#include<iostream>
using namespace std;

void count(char* str)
{
	int i = 0;
	int le = strlen(str);
	int ch = 0, nu = 0, spa1 = 0;
	for (; i < le; i++)
	{
		if (str[i] <= '9' && str[i] >= '0')
		{
			nu = nu + 1;
			//看有数字否
		}
		else if ((str[i] <= 'z' && str[i] >= 'a') || (str[i] <= 'Z' && str[i] >= 'A'))
			ch = ch + 1;
		else if(str[i] == ' ')
			spa1=spa1+1;
	}
	cout << ch << "," << nu << "," << spa1 << endl;
}
//
// 
// 
// 
// 只用提交以上内容
// 
// 
//
int main()
{
	char p[] = "12asddCSDA  sds23244354";
	count(p);
}